<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: hotkey.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00290.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle">
<div class="title">hotkey.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03623_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00290_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:af56ab3544d3ab492c5d966b4c9469266"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#af56ab3544d3ab492c5d966b4c9469266">SaveImeHotKey</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwID, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uModifiers, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uVKey, HKL hkl, BOOL fDelete)</td></tr>
<tr class="separator:af56ab3544d3ab492c5d966b4c9469266"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a723d9ff773cafab64424bec3d32c2921"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a723d9ff773cafab64424bec3d32c2921">ImmSetHotKeyWorker</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwID, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uModifiers, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uVKey, HKL hkl, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwAction)</td></tr>
<tr class="separator:a723d9ff773cafab64424bec3d32c2921"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98850fc49533deeaede9de02aca59a00"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a98850fc49533deeaede9de02aca59a00">NumToHexAscii</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>, PTSTR)</td></tr>
<tr class="separator:a98850fc49533deeaede9de02aca59a00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec2ee4d8404100149f7614f5d9273117"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#aec2ee4d8404100149f7614f5d9273117">CIMENonIMEToggle</a> (HIMC hIMC, HKL hKL, HWND hWnd)</td></tr>
<tr class="separator:aec2ee4d8404100149f7614f5d9273117"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0e0a9dac1c90374ff92df3129a5c382"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#aa0e0a9dac1c90374ff92df3129a5c382">IMENonIMEToggle</a> (HIMC hIMC, HKL hKL, HWND hWnd, BOOL fIME)</td></tr>
<tr class="separator:aa0e0a9dac1c90374ff92df3129a5c382"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24fb9a95d0840522ea450a58c1d991c6"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a24fb9a95d0840522ea450a58c1d991c6">JCloseOpen</a> (HIMC hIMC, HKL hKL, HWND hWnd)</td></tr>
<tr class="separator:a24fb9a95d0840522ea450a58c1d991c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33800c2717617b9775666d62b38a6d63"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a33800c2717617b9775666d62b38a6d63">CSymbolToggle</a> (HIMC hIMC, HKL hKL, HWND hWnd)</td></tr>
<tr class="separator:a33800c2717617b9775666d62b38a6d63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ebfa165d5401811c7df846ab4b12e46"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a1ebfa165d5401811c7df846ab4b12e46">TShapeToggle</a> (HIMC hIMC, HKL hKL, HWND hWnd)</td></tr>
<tr class="separator:a1ebfa165d5401811c7df846ab4b12e46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94659c775dc741381fd9bd5dfdfd4155"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a94659c775dc741381fd9bd5dfdfd4155">GetImeHotKeysFromRegistry</a> ()</td></tr>
<tr class="separator:a94659c775dc741381fd9bd5dfdfd4155"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0db6f826e55aea5a34f592b6a897dcd5"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a0db6f826e55aea5a34f592b6a897dcd5">SetSingleHotKey</a> (PKEY_BASIC_INFORMATION pKeyInfo, HANDLE hKey)</td></tr>
<tr class="separator:a0db6f826e55aea5a34f592b6a897dcd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af049c94d40ae862e4a06fead369ae652"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#af049c94d40ae862e4a06fead369ae652">SetDefaultImeHotKeys</a> (<a class="el" href="a00341.html#a266b36e663e29a015c8bf40d68393d8d">PIMEHOTKEY</a> ph, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> num, BOOL fCheckExistingHotKey)</td></tr>
<tr class="separator:af049c94d40ae862e4a06fead369ae652"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34ab8713b440f62e49aca7396078b501"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a34ab8713b440f62e49aca7396078b501">KEnglishHangeul</a> (HIMC hIMC, HKL hKL, HWND hWnd)</td></tr>
<tr class="separator:a34ab8713b440f62e49aca7396078b501"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98214bc2c7b6cf81de284d5988c85e7a"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a98214bc2c7b6cf81de284d5988c85e7a">KShapeToggle</a> (HIMC hIMC, HKL hKL, HWND hWnd)</td></tr>
<tr class="separator:a98214bc2c7b6cf81de284d5988c85e7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca264753730daaafd8b19979ec8b5511"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#aca264753730daaafd8b19979ec8b5511">KHanjaConvert</a> (HIMC hIMC, HKL hKL, HWND hWnd)</td></tr>
<tr class="separator:aca264753730daaafd8b19979ec8b5511"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57534b163256da047704429045116132"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a57534b163256da047704429045116132">ImmInitializeHotKeys</a> (BOOL bUserLoggedOn)</td></tr>
<tr class="separator:a57534b163256da047704429045116132"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c1a135c5a98d4104ee2717ed98ec312"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a8c1a135c5a98d4104ee2717ed98ec312">ReadRegistryValue</a> (HANDLE hKey, PWSTR pName)</td></tr>
<tr class="separator:a8c1a135c5a98d4104ee2717ed98ec312"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab182755bc3002965f65aac6a072f0bc0"><td class="memItemLeft" align="right" valign="top">BOOL WINAPI&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#ab182755bc3002965f65aac6a072f0bc0">ImmGetHotKey</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwID, PUINT puModifiers, PUINT puVKey, HKL *phkl)</td></tr>
<tr class="separator:ab182755bc3002965f65aac6a072f0bc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab86fda7b69b6a47b4efb7875aec9f18e"><td class="memItemLeft" align="right" valign="top">BOOL WINAPI&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#ab86fda7b69b6a47b4efb7875aec9f18e">ImmSetHotKey</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwID, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uModifiers, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uVKey, HKL hkl)</td></tr>
<tr class="separator:ab86fda7b69b6a47b4efb7875aec9f18e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa7b3a4e3cccbae0791dab76c0f4d708"><td class="memItemLeft" align="right" valign="top">BOOL WINAPI&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#afa7b3a4e3cccbae0791dab76c0f4d708">ImmSimulateHotKey</a> (HWND hAppWnd, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwHotKeyID)</td></tr>
<tr class="separator:afa7b3a4e3cccbae0791dab76c0f4d708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb45e689185d5e3ec73f92a778a8911d"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#afb45e689185d5e3ec73f92a778a8911d">NumToHexAscii</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwNum, PWSTR szAscii)</td></tr>
<tr class="separator:afb45e689185d5e3ec73f92a778a8911d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a159f161f022ec8eb7ab7feaed3462dac"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a159f161f022ec8eb7ab7feaed3462dac">HotKeyIDDispatcher</a> (HWND hWnd, HIMC hIMC, HKL hkl, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwHotKeyID)</td></tr>
<tr class="separator:a159f161f022ec8eb7ab7feaed3462dac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a5a5d5f37972b6a7484c6726521d83c7e"><td class="memItemLeft" align="right" valign="top">TCHAR *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a5a5d5f37972b6a7484c6726521d83c7e">szaRegImmHotKeys</a> []</td></tr>
<tr class="separator:a5a5d5f37972b6a7484c6726521d83c7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02fed740dc6585f5f7b32bf34008b6ad"><td class="memItemLeft" align="right" valign="top">TCHAR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a02fed740dc6585f5f7b32bf34008b6ad">szRegImeHotKey</a> [] = TEXT(&quot;Control Panel\\Input Method\\Hot Keys&quot;)</td></tr>
<tr class="separator:a02fed740dc6585f5f7b32bf34008b6ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a588ef18751a8ca67b4059fb29ecc8b3c"><td class="memItemLeft" align="right" valign="top">TCHAR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a588ef18751a8ca67b4059fb29ecc8b3c">szRegVK</a> [] = TEXT(&quot;Virtual Key&quot;)</td></tr>
<tr class="separator:a588ef18751a8ca67b4059fb29ecc8b3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1eb49c7843a1f209788fc987b91626bb"><td class="memItemLeft" align="right" valign="top">TCHAR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a1eb49c7843a1f209788fc987b91626bb">szRegMOD</a> [] = TEXT(&quot;Key Modifiers&quot;)</td></tr>
<tr class="separator:a1eb49c7843a1f209788fc987b91626bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3227adc9bfdc09955b9d3fd32e17fef"><td class="memItemLeft" align="right" valign="top">TCHAR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#ab3227adc9bfdc09955b9d3fd32e17fef">szRegHKL</a> [] = TEXT(&quot;Target IME&quot;)</td></tr>
<tr class="separator:ab3227adc9bfdc09955b9d3fd32e17fef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accbde14628a83458fcb4bb4f185e1d4a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#accbde14628a83458fcb4bb4f185e1d4a">DefaultHotKeyTableJ</a> []</td></tr>
<tr class="separator:accbde14628a83458fcb4bb4f185e1d4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd805550da61afa38355cd1cd6b30e29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#abd805550da61afa38355cd1cd6b30e29">DefaultHotKeyNumJ</a> = sizeof(<a class="el" href="a00290.html#accbde14628a83458fcb4bb4f185e1d4a">DefaultHotKeyTableJ</a>) / sizeof(<a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>)</td></tr>
<tr class="separator:abd805550da61afa38355cd1cd6b30e29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c1bbca623bcff5393fe0becf1083f06"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a1c1bbca623bcff5393fe0becf1083f06">DefaultHotKeyTableK</a> []</td></tr>
<tr class="separator:a1c1bbca623bcff5393fe0becf1083f06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cec1255c18441ed7a8a6bd070a9bd10"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a7cec1255c18441ed7a8a6bd070a9bd10">DefaultHotKeyNumK</a> = sizeof(<a class="el" href="a00290.html#a1c1bbca623bcff5393fe0becf1083f06">DefaultHotKeyTableK</a>) / sizeof(<a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>)</td></tr>
<tr class="separator:a7cec1255c18441ed7a8a6bd070a9bd10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a928e85672e6ae1095fd67d64fceed206"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a928e85672e6ae1095fd67d64fceed206">DefaultHotKeyTableT</a> []</td></tr>
<tr class="separator:a928e85672e6ae1095fd67d64fceed206"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe4753787abf4b7d8284900c32abbe8a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#abe4753787abf4b7d8284900c32abbe8a">DefaultHotKeyNumT</a> = sizeof(<a class="el" href="a00290.html#a928e85672e6ae1095fd67d64fceed206">DefaultHotKeyTableT</a>) / sizeof(<a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>)</td></tr>
<tr class="separator:abe4753787abf4b7d8284900c32abbe8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11c0d7986011af848222b788aba333a3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a11c0d7986011af848222b788aba333a3">DefaultHotKeyTableC</a> []</td></tr>
<tr class="separator:a11c0d7986011af848222b788aba333a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2a3547cf7aa2440b6aa5e1993d793c6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#ac2a3547cf7aa2440b6aa5e1993d793c6">DefaultHotKeyNumC</a> = sizeof(<a class="el" href="a00290.html#a11c0d7986011af848222b788aba333a3">DefaultHotKeyTableC</a>) / sizeof(<a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>)</td></tr>
<tr class="separator:ac2a3547cf7aa2440b6aa5e1993d793c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c47385a6c0c83f1baece0767254a90e"><td class="memItemLeft" align="right" valign="top">static TCHAR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00290.html#a3c47385a6c0c83f1baece0767254a90e">szHexString</a> [] = TEXT(&quot;0123456789ABCDEF&quot;)</td></tr>
<tr class="separator:a3c47385a6c0c83f1baece0767254a90e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="aec2ee4d8404100149f7614f5d9273117"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec2ee4d8404100149f7614f5d9273117">&#9670;&nbsp;</a></span>CIMENonIMEToggle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL CIMENonIMEToggle </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hIMC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00736">736</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;{</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;    <span class="keywordflow">if</span> (hWnd == NULL)</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160; </div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;    <span class="keywordflow">if</span> ( ! <a class="code" href="a00308.html#a1049d5ab2aa00c19da40b532e7470340">ImmIsIME</a>( hKlCurrent ) ) {</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;    <span class="comment">// Current keyboard layout is not IME. </span></div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;    <span class="comment">// Let&#39;s try to switch to IME.</span></div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#aa0e0a9dac1c90374ff92df3129a5c382">IMENonIMEToggle</a>(hIMC, hKlCurrent, hWnd, FALSE );</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160; </div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160; </div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;        LPINPUTCONTEXT pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>( hIMC );</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160; </div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;        <span class="keywordflow">if</span> ( pInputContext == NULL ) {</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;            <span class="comment">// returning TRUE even if we didn&#39;t change</span></div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;            <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;        }  </div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;        <span class="keywordflow">if</span> (!pInputContext-&gt;fOpen) {</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;            <span class="comment">// </span></div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;            <span class="comment">// toggle close to open </span></div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;            <a class="code" href="a00281.html#a5e0c7331ea0751d2c642cc4207e6632b">ImmSetOpenStatus</a>(hIMC, TRUE);</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;            <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hIMC);</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;            <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;            <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hIMC);</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="a00290.html#aa0e0a9dac1c90374ff92df3129a5c382">IMENonIMEToggle</a>(hIMC, hKlCurrent, hWnd, TRUE);</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;        }</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;    }</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00290_source.html#l00780">IMENonIMEToggle()</a>, <a class="el" href="a00308_source.html#l00279">ImmIsIME()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00281_source.html#l01364">ImmSetOpenStatus()</a> , 以及 <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00591">HotKeyIDDispatcher()</a>.</p>

</div>
</div>
<a id="a33800c2717617b9775666d62b38a6d63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33800c2717617b9775666d62b38a6d63">&#9670;&nbsp;</a></span>CSymbolToggle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL CSymbolToggle </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hIMC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00845">845</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;{</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;    LPINPUTCONTEXT pInputContext;</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160; </div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;    <span class="comment">// Return TRUE even no layout switching - Win95 behavior</span></div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;    <span class="keywordflow">if</span> (hWnd == NULL)</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160; </div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;    <span class="keywordflow">if</span> ( ! <a class="code" href="a00308.html#a1049d5ab2aa00c19da40b532e7470340">ImmIsIME</a>( hKL ) ) {</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;        <span class="keywordflow">return</span> (FALSE);</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;    }</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160; </div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;    <span class="keywordflow">if</span> ( (pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>( hIMC )) == NULL ) {</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;        <span class="comment">// The return value is same as Win95. </span></div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;        <span class="comment">// Not happens so often any way.</span></div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;    }</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160; </div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;    <span class="keywordflow">if</span> (pInputContext-&gt;fOpen) {</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;        <span class="comment">// toggle the symbol mode</span></div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;        <a class="code" href="a00281.html#aa8b403df420fbce8bc11b8c26d67b73e">ImmSetConversionStatus</a>(hIMC,</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;                               pInputContext-&gt;fdwConversion ^ IME_CMODE_SYMBOL,</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;                               pInputContext-&gt;fdwSentence);</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;    }</div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;        <span class="comment">// change close -&gt; open</span></div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;        <a class="code" href="a00281.html#a5e0c7331ea0751d2c642cc4207e6632b">ImmSetOpenStatus</a>(hIMC, TRUE);</div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;    }</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160; </div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;    <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hIMC);</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;    <span class="keywordflow">return</span> (TRUE);</div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160; </div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00308_source.html#l00279">ImmIsIME()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00281_source.html#l01262">ImmSetConversionStatus()</a>, <a class="el" href="a00281_source.html#l01364">ImmSetOpenStatus()</a> , 以及 <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00591">HotKeyIDDispatcher()</a>.</p>

</div>
</div>
<a id="a94659c775dc741381fd9bd5dfdfd4155"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94659c775dc741381fd9bd5dfdfd4155">&#9670;&nbsp;</a></span>GetImeHotKeysFromRegistry()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL GetImeHotKeysFromRegistry </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00149">149</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;{</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    BOOL    fFoundAny = FALSE;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    HANDLE hCurrentUserKey;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    HANDLE hKeyHotKeys;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    OBJECT_ATTRIBUTES   Obja;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    UNICODE_STRING      SubKeyName;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    NTSTATUS Status;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    ULONG Index;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="comment">// Open the current user registry key</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    Status = RtlOpenCurrentUser(MAXIMUM_ALLOWED, &amp;hCurrentUserKey);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">if</span> (!NT_SUCCESS(Status)) {</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        <span class="keywordflow">return</span> fFoundAny;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    }</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    RtlInitUnicodeString( &amp;SubKeyName, <a class="code" href="a00290.html#a02fed740dc6585f5f7b32bf34008b6ad">szRegImeHotKey</a> );</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    InitializeObjectAttributes( &amp;Obja,</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                                &amp;SubKeyName,</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                                OBJ_CASE_INSENSITIVE, </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                                hCurrentUserKey, </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                                NULL);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    Status = NtOpenKey( &amp;hKeyHotKeys, KEY_READ, &amp;Obja );</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="keywordflow">if</span> (!NT_SUCCESS(Status)) {</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        NtClose( hCurrentUserKey );</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keywordflow">return</span> fFoundAny;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    }</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keywordflow">for</span>( Index = 0; TRUE; Index++ ) {</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        BYTE KeyBuffer[ <span class="keyword">sizeof</span>(KEY_BASIC_INFORMATION) + 16 * <span class="keyword">sizeof</span>( WCHAR ) ];</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        PKEY_BASIC_INFORMATION pKeyInfo;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        ULONG ResultLength;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        pKeyInfo = (PKEY_BASIC_INFORMATION)KeyBuffer; </div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        Status = NtEnumerateKey( hKeyHotKeys,   </div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                                 Index,         </div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;                                 KeyBasicInformation, </div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;                                 pKeyInfo, </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                                 <span class="keyword">sizeof</span>( KeyBuffer ),</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;                                 &amp;ResultLength );</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <span class="keywordflow">if</span> ( NT_SUCCESS( Status ) ) {</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;            <span class="keywordflow">if</span> ( <a class="code" href="a00290.html#a0db6f826e55aea5a34f592b6a897dcd5">SetSingleHotKey</a>(pKeyInfo, hKeyHotKeys) ) {</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                    fFoundAny = TRUE;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            }</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160; </div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( Status == STATUS_NO_MORE_ENTRIES ) {</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        }</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    } </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160; </div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    NtClose( hKeyHotKeys );</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    NtClose( hCurrentUserKey );</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="keywordflow">return</span> ( fFoundAny );</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00290_source.html#l00244">SetSingleHotKey()</a> , 以及 <a class="el" href="a00290_source.html#l00041">szRegImeHotKey</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="a159f161f022ec8eb7ab7feaed3462dac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a159f161f022ec8eb7ab7feaed3462dac">&#9670;&nbsp;</a></span>HotKeyIDDispatcher()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL HotKeyIDDispatcher </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hIMC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hkl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwHotKeyID</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00591">591</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;{</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160; </div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    <span class="keywordflow">switch</span> ( dwHotKeyID ) {</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;    <span class="keywordflow">case</span> IME_CHOTKEY_IME_NONIME_TOGGLE:</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;    <span class="keywordflow">case</span> IME_THOTKEY_IME_NONIME_TOGGLE:</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#aec2ee4d8404100149f7614f5d9273117">CIMENonIMEToggle</a>(hIMC, hkl, hWnd);</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160; </div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    <span class="keywordflow">case</span> IME_CHOTKEY_SYMBOL_TOGGLE:</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    <span class="keywordflow">case</span> IME_THOTKEY_SYMBOL_TOGGLE:</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a33800c2717617b9775666d62b38a6d63">CSymbolToggle</a>(hIMC, hkl, hWnd);</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160; </div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    <span class="keywordflow">case</span> IME_JHOTKEY_CLOSE_OPEN:</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a24fb9a95d0840522ea450a58c1d991c6">JCloseOpen</a>( hIMC, hkl, hWnd);</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160; </div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;<span class="preprocessor">#ifdef LATER</span></div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;    <span class="keywordflow">case</span> IME_KHOTKEY_ENGLISH:</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a34ab8713b440f62e49aca7396078b501">KEnglishHangeul</a>(pThreadLink);</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    <span class="keywordflow">case</span> IME_KHOTKEY_SHAPE_TOGGLE:</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a98214bc2c7b6cf81de284d5988c85e7a">KShapeToggle</a>(pThreadLink);</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;    <span class="keywordflow">case</span> IME_KHOTKEY_HANJACONVERT:</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#aca264753730daaafd8b19979ec8b5511">KHanjaConvert</a>(pThreadLink);</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160; </div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;    <span class="keywordflow">case</span> IME_CHOTKEY_SHAPE_TOGGLE:</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;    <span class="keywordflow">case</span> IME_THOTKEY_SHAPE_TOGGLE:</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#a1ebfa165d5401811c7df846ab4b12e46">TShapeToggle</a>(hIMC, hkl, hWnd);</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160; </div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;        <span class="keywordflow">if</span> ( dwHotKeyID &gt;= IME_HOTKEY_DSWITCH_FIRST &amp;&amp; </div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;             dwHotKeyID &lt;= IME_HOTKEY_DSWITCH_LAST )</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;        {</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;            <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uModifiers;</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;            <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uVKey;</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;            HKL hkl;</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;        </div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;            <span class="keywordflow">if</span> ( <a class="code" href="a00290.html#ab182755bc3002965f65aac6a072f0bc0">ImmGetHotKey</a>( dwHotKeyID, &amp;uModifiers, &amp;uVKey, &amp;hkl ) ) {</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;                HKL hklCurrent;</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160; </div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;                hklCurrent = <a class="code" href="a00026.html#a46278f8b1db32b9b4679eee6abc9e1b4">GetKeyboardLayout</a>( <a class="code" href="a00263.html#a1dc37c01a43d34053e1dbf4ee8e0da0a">GetWindowThreadProcessId</a>( hWnd, NULL) );</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;                <span class="keywordflow">if</span> ( hklCurrent != hkl ) {</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;                    <a class="code" href="a00356.html#a3f53b9d5a549a62853c4e3fb22b649d7">PostMessage</a>( hWnd, </div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;                                 WM_INPUTLANGCHANGEREQUEST, </div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;                                 DEFAULT_CHARSET,</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;                                 (LPARAM)hkl );</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;                }</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;                <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;            }</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;        }</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;    }</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    <span class="keywordflow">return</span> (FALSE);</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00290_source.html#l00736">CIMENonIMEToggle()</a>, <a class="el" href="a00290_source.html#l00845">CSymbolToggle()</a>, <a class="el" href="a00026_source.html#l03732">GetKeyboardLayout()</a>, <a class="el" href="a00263_source.html#l00211">GetWindowThreadProcessId()</a>, <a class="el" href="a00290_source.html#l00290">ImmGetHotKey()</a>, <a class="el" href="a00290_source.html#l00649">JCloseOpen()</a>, <a class="el" href="a00290.html#a34ab8713b440f62e49aca7396078b501">KEnglishHangeul()</a>, <a class="el" href="a00290.html#aca264753730daaafd8b19979ec8b5511">KHanjaConvert()</a>, <a class="el" href="a00290.html#a98214bc2c7b6cf81de284d5988c85e7a">KShapeToggle()</a>, <a class="el" href="a00356_source.html#l00471">PostMessage()</a>, <a class="el" href="a00290_source.html#l00895">TShapeToggle()</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03287_source.html#l00023">ImmProcessKey()</a> , 以及 <a class="el" href="a00290_source.html#l00360">ImmSimulateHotKey()</a>.</p>

</div>
</div>
<a id="aa0e0a9dac1c90374ff92df3129a5c382"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0e0a9dac1c90374ff92df3129a5c382">&#9670;&nbsp;</a></span>IMENonIMEToggle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL IMENonIMEToggle </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hIMC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fIME</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00780">780</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;{</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;    HKL  hEnumKL[32], hTargetKL;</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> nLayouts, i;</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;    HKL hPrevKL = NULL;</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160; </div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;<span class="preprocessor">#ifdef LATER    </span></div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti;</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    <span class="comment">// Get the previous layout</span></div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;    pti = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;    <span class="keywordflow">if</span> ( pti == NULL ) {</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;    }</div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;    hPrevKL = pti-&gt;hPrevKL;</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160; </div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;    <span class="comment">// If we find the same layout in the layout list, let&#39;s switch to</span></div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;    <span class="comment">// the layout. If we fail, let&#39;s switch to a first-found good </span></div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;    <span class="comment">// layout.</span></div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160; </div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;    hTargetKL = NULL;</div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;    nLayouts = <a class="code" href="a03611.html#a2af1fea76a3d4039e988f3b3cb376be8">GetKeyboardLayoutList</a>(<span class="keyword">sizeof</span>(hEnumKL)/<span class="keyword">sizeof</span>(HKL), hEnumKL);</div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;    <span class="keywordflow">if</span> ( hPrevKL != NULL ) {</div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; nLayouts; i++) {</div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;            <span class="comment">// valid target HKL</span></div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;            <span class="keywordflow">if</span> (hEnumKL[i] == hPrevKL) {</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;                hTargetKL = hPrevKL;</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;            }</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;        }</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;    } </div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;    <span class="keywordflow">if</span> ( hTargetKL == NULL ) {</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; nLayouts; i++) {</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;            <span class="comment">// find a valid target HKL</span></div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;            <span class="keywordflow">if</span> (fCurrentIsIME ^ <a class="code" href="a00308.html#a1049d5ab2aa00c19da40b532e7470340">ImmIsIME</a>(hEnumKL[i])) {</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;                hTargetKL = hEnumKL[i];</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;            }</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;        }</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;    }</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;    <span class="keywordflow">if</span> ( hTargetKL != NULL &amp;&amp; hCurrentKL != hTargetKL ) {</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160; </div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;        <span class="comment">// depends on multilingual message and how to get the base charset</span></div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;        <span class="comment">// wait for confirmation of multiingual spec - tmp solution</span></div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;        <a class="code" href="a00356.html#a3f53b9d5a549a62853c4e3fb22b649d7">PostMessage</a>(hWnd, WM_INPUTLANGCHANGEREQUEST, DEFAULT_CHARSET, (LPARAM)hTargetKL);</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;    }</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;    <span class="comment">// returning TRUE, even if we failed to switch</span></div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;    <span class="keywordflow">return</span> (TRUE);</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03611_source.html#l01560">GetKeyboardLayoutList()</a>, <a class="el" href="a00308_source.html#l00279">ImmIsIME()</a>, <a class="el" href="a00356_source.html#l00471">PostMessage()</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00736">CIMENonIMEToggle()</a> , 以及 <a class="el" href="a00290_source.html#l00649">JCloseOpen()</a>.</p>

</div>
</div>
<a id="ab182755bc3002965f65aac6a072f0bc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab182755bc3002965f65aac6a072f0bc0">&#9670;&nbsp;</a></span>ImmGetHotKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL WINAPI ImmGetHotKey </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PUINT&#160;</td>
          <td class="paramname"><em>puModifiers</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PUINT&#160;</td>
          <td class="paramname"><em>puVKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL *&#160;</td>
          <td class="paramname"><em>phkl</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00290">290</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;{</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <span class="keywordflow">if</span> (puModifiers == NULL || puVKey == NULL) {</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    }</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00341.html#a324a2e861f60c2842615a00c7027016f">NtUserGetImeHotKey</a>( dwID, puModifiers, puVKey, phkl );</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00341.html#a324a2e861f60c2842615a00c7027016f">NtUserGetImeHotKey()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00591">HotKeyIDDispatcher()</a> , 以及 <a class="el" href="a00290_source.html#l00123">SetDefaultImeHotKeys()</a>.</p>

</div>
</div>
<a id="a57534b163256da047704429045116132"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57534b163256da047704429045116132">&#9670;&nbsp;</a></span>ImmInitializeHotKeys()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID ImmInitializeHotKeys </td>
          <td>(</td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>bUserLoggedOn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00086">86</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;{</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    LCID lcid;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    BOOL fFoundAny;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <a class="code" href="a00290.html#a723d9ff773cafab64424bec3d32c2921">ImmSetHotKeyWorker</a>( 0, 0, 0, NULL, <a class="code" href="a00341.html#aa968df90be5e9b0fbaacebcd15dab627">ISHK_INITIALIZE</a> );</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    fFoundAny = <a class="code" href="a00290.html#a94659c775dc741381fd9bd5dfdfd4155">GetImeHotKeysFromRegistry</a>();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    lcid = GetUserDefaultLCID();</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordflow">switch</span> ( PRIMARYLANGID(LANGIDFROMLCID(lcid)) ) {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordflow">case</span> LANG_JAPANESE:</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <a class="code" href="a00290.html#af049c94d40ae862e4a06fead369ae652">SetDefaultImeHotKeys</a>( <a class="code" href="a00290.html#accbde14628a83458fcb4bb4f185e1d4a">DefaultHotKeyTableJ</a>, <a class="code" href="a00290.html#abd805550da61afa38355cd1cd6b30e29">DefaultHotKeyNumJ</a>, fFoundAny );</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordflow">case</span> LANG_KOREAN:</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <a class="code" href="a00290.html#af049c94d40ae862e4a06fead369ae652">SetDefaultImeHotKeys</a>( <a class="code" href="a00290.html#a1c1bbca623bcff5393fe0becf1083f06">DefaultHotKeyTableK</a>, <a class="code" href="a00290.html#a7cec1255c18441ed7a8a6bd070a9bd10">DefaultHotKeyNumK</a>, fFoundAny );</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordflow">case</span> LANG_CHINESE:</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="keywordflow">switch</span> ( SUBLANGID(lcid) ) {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keywordflow">case</span> SUBLANG_CHINESE_TRADITIONAL: </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="keywordflow">case</span> SUBLANG_CHINESE_HONGKONG:</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            <a class="code" href="a00290.html#af049c94d40ae862e4a06fead369ae652">SetDefaultImeHotKeys</a>( <a class="code" href="a00290.html#a928e85672e6ae1095fd67d64fceed206">DefaultHotKeyTableT</a>, <a class="code" href="a00290.html#abe4753787abf4b7d8284900c32abbe8a">DefaultHotKeyNumT</a>, fFoundAny );</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">case</span> SUBLANG_CHINESE_SIMPLIFIED:</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="keywordflow">case</span> SUBLANG_CHINESE_SINGAPORE:</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            <a class="code" href="a00290.html#af049c94d40ae862e4a06fead369ae652">SetDefaultImeHotKeys</a>( <a class="code" href="a00290.html#a11c0d7986011af848222b788aba333a3">DefaultHotKeyTableC</a>, <a class="code" href="a00290.html#ac2a3547cf7aa2440b6aa5e1993d793c6">DefaultHotKeyNumC</a>, fFoundAny );</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        }</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    }</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00290_source.html#l00074">DefaultHotKeyNumC</a>, <a class="el" href="a00290_source.html#l00055">DefaultHotKeyNumJ</a>, <a class="el" href="a00290_source.html#l00062">DefaultHotKeyNumK</a>, <a class="el" href="a00290_source.html#l00068">DefaultHotKeyNumT</a>, <a class="el" href="a00290_source.html#l00070">DefaultHotKeyTableC</a>, <a class="el" href="a00290_source.html#l00052">DefaultHotKeyTableJ</a>, <a class="el" href="a00290_source.html#l00057">DefaultHotKeyTableK</a>, <a class="el" href="a00290_source.html#l00064">DefaultHotKeyTableT</a>, <a class="el" href="a00290_source.html#l00149">GetImeHotKeysFromRegistry()</a>, <a class="el" href="a00290_source.html#l00495">ImmSetHotKeyWorker()</a>, <a class="el" href="a00341_source.html#l00068">ISHK_INITIALIZE</a> , 以及 <a class="el" href="a00290_source.html#l00123">SetDefaultImeHotKeys()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03611_source.html#l00065">UpdatePerUserSystemParameters()</a>.</p>

</div>
</div>
<a id="ab86fda7b69b6a47b4efb7875aec9f18e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab86fda7b69b6a47b4efb7875aec9f18e">&#9670;&nbsp;</a></span>ImmSetHotKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL WINAPI ImmSetHotKey </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>uModifiers</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>uVKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hkl</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00310">310</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;{</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    BOOL fResult;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    BOOL fTmp;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    BOOL fDelete = (uVKey == 0 ) ? TRUE : FALSE;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160; </div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    <span class="keywordflow">if</span> ( fDelete ) {</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        <span class="comment">// Removing an IME hotkey from the list in the kernel side</span></div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        <span class="comment">// should not be failed, if we succeed to remove the IME</span></div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="comment">// hotkey entry from the registry. Therefore SaveImeHotKey</span></div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        <span class="comment">// is called first.</span></div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;        fResult = <a class="code" href="a00290.html#af56ab3544d3ab492c5d966b4c9469266">SaveImeHotKey</a>( dwID, uModifiers, uVKey, hkl,  fDelete );</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;        <span class="keywordflow">if</span> ( fResult ) {</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;            fTmp = <a class="code" href="a00290.html#a723d9ff773cafab64424bec3d32c2921">ImmSetHotKeyWorker</a>( dwID, uModifiers, uVKey, hkl, <a class="code" href="a00341.html#ae4e276818dfca727a1b951fb48026f6a">ISHK_REMOVE</a> );</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;            <a class="code" href="a00293.html#a4a8d67a2c4cc9ce4dd6aabfd9e460635">ImmAssert</a>( fTmp );</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        }</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;        <span class="comment">// ImmSetHotKeyWorker should be called first since</span></div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;        <span class="comment">// adding an IME hotkey into the list in the kernel side</span></div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;        <span class="comment">// will be faild in various reasons. </span></div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;        <span class="comment">// </span></div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        fResult = <a class="code" href="a00290.html#a723d9ff773cafab64424bec3d32c2921">ImmSetHotKeyWorker</a>( dwID, uModifiers, uVKey, hkl, <a class="code" href="a00341.html#a978064f0ef1e2603367fda2b3d28900f">ISHK_ADD</a> );</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        <span class="keywordflow">if</span> ( fResult ) {</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;            fResult = <a class="code" href="a00290.html#af56ab3544d3ab492c5d966b4c9469266">SaveImeHotKey</a>( dwID, uModifiers, uVKey, hkl, fDelete );</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;            <span class="keywordflow">if</span> ( ! fResult ) {</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;                <span class="comment">// We failed to save the hotkey to the registry.</span></div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;                <span class="comment">// We need to remove the entry from the IME hotkey</span></div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;                <span class="comment">// list in the kernel side. </span></div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;                fTmp = <a class="code" href="a00290.html#a723d9ff773cafab64424bec3d32c2921">ImmSetHotKeyWorker</a>( dwID, uModifiers, uVKey, hkl, <a class="code" href="a00341.html#ae4e276818dfca727a1b951fb48026f6a">ISHK_REMOVE</a> );</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;                <a class="code" href="a00293.html#a4a8d67a2c4cc9ce4dd6aabfd9e460635">ImmAssert</a>( fTmp );</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;            }</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        }</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    }</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordflow">return</span> fResult;</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00293_source.html#l00057">ImmAssert</a>, <a class="el" href="a00290_source.html#l00495">ImmSetHotKeyWorker()</a>, <a class="el" href="a00341_source.html#l00067">ISHK_ADD</a>, <a class="el" href="a00341_source.html#l00066">ISHK_REMOVE</a> , 以及 <a class="el" href="a00290_source.html#l00384">SaveImeHotKey()</a>.</p>

</div>
</div>
<a id="a723d9ff773cafab64424bec3d32c2921"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a723d9ff773cafab64424bec3d32c2921">&#9670;&nbsp;</a></span>ImmSetHotKeyWorker()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL ImmSetHotKeyWorker </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>uModifiers</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>uVKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hkl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwAction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00495">495</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;{</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    <span class="comment">// if we&#39;re adding an IME hotkey entry, let&#39;s check</span></div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;    <span class="comment">// the parameters before calling the kernel side code</span></div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;    <span class="comment">// </span></div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    <span class="keywordflow">if</span> ( dwAction == <a class="code" href="a00341.html#a978064f0ef1e2603367fda2b3d28900f">ISHK_ADD</a> ) {</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160; </div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;        <span class="keywordflow">if</span> ( dwID &gt;= IME_HOTKEY_DSWITCH_FIRST &amp;&amp; </div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;             dwID &lt;= IME_HOTKEY_DSWITCH_LAST ) {</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;            <span class="comment">// IME direct switching hot key - switch to </span></div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;            <span class="comment">// the keyboard layout specified.</span></div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;            <span class="comment">// We need to specify keyboard layout.</span></div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;            <span class="comment">// </span></div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;            <span class="keywordflow">if</span> ( hkl == NULL ) { </div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;                <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>( ERROR_INVALID_PARAMETER, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;hkl should be specified&quot;</span>);</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;                <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;            }</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160; </div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;            <span class="comment">// normal hot keys - change the mode of current iME</span></div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;            <span class="comment">// Because it should be effective in all IME no matter </span></div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;            <span class="comment">// which IME is active we should not specify a target IME</span></div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;            <span class="comment">// </span></div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;            <span class="keywordflow">if</span> ( hkl != NULL ) { </div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;                <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>( ERROR_INVALID_PARAMETER, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;hkl shouldn&#39;t be specified&quot;</span>);</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;                <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;            }</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;        }</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160; </div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;        <span class="keywordflow">if</span> ( uModifiers &amp; <a class="code" href="a00341.html#a0fda78347cf5f0401336a24533fab608">MOD_MODIFY_KEYS</a> ) {</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;            <span class="comment">// Because normal keyboard has left and right key for </span></div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;            <span class="comment">// these keys, you should specify left or right ( or both )</span></div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;            <span class="keywordflow">if</span> ( ! (uModifiers &amp; <a class="code" href="a00341.html#ab919ec4d5f075c2c9d250c43cf146fb7">MOD_BOTH_SIDES</a> ) ) {</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;                <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>( ERROR_INVALID_PARAMETER, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;invalid modifiers&quot;</span>);</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;                <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;            }</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;        }</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160; </div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;        <span class="comment">// It doesn&#39;t make sense if vkey is same as modifiers</span></div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;        <span class="keywordflow">if</span> ( ((uModifiers &amp; MOD_ALT) &amp;&amp; (uVKey == VK_MENU))        ||</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;             ((uModifiers &amp; MOD_CONTROL) &amp;&amp; (uVKey == VK_CONTROL)) ||</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;             ((uModifiers &amp; MOD_SHIFT) &amp;&amp; (uVKey == VK_SHIFT))     ||</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;             ((uModifiers &amp; MOD_WIN) &amp;&amp; ((uVKey == VK_LWIN)||(uVKey == VK_RWIN))) </div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;           ) {</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160; </div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;            <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>( ERROR_INVALID_PARAMETER, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;vkey and modifiers are same&quot;</span>);</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;        }</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;    }</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00341.html#a52e0378e937fd83c187f45fd41d6e793">NtUserSetImeHotKey</a>( dwID, uModifiers, uVKey, hkl, dwAction );</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00341_source.html#l00067">ISHK_ADD</a>, <a class="el" href="a00341_source.html#l00065">MOD_BOTH_SIDES</a>, <a class="el" href="a00341_source.html#l00064">MOD_MODIFY_KEYS</a>, <a class="el" href="a00341.html#a52e0378e937fd83c187f45fd41d6e793">NtUserSetImeHotKey()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a> , 以及 <a class="el" href="a00371_source.html#l00119">RIPERR0</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>, <a class="el" href="a00290_source.html#l00310">ImmSetHotKey()</a>, <a class="el" href="a00290_source.html#l00123">SetDefaultImeHotKeys()</a> , 以及 <a class="el" href="a00290_source.html#l00244">SetSingleHotKey()</a>.</p>

</div>
</div>
<a id="afa7b3a4e3cccbae0791dab76c0f4d708"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa7b3a4e3cccbae0791dab76c0f4d708">&#9670;&nbsp;</a></span>ImmSimulateHotKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL WINAPI ImmSimulateHotKey </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hAppWnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwHotKeyID</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00360">360</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;{</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    HIMC hImc;</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    HKL  hKL;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160; </div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    hImc = <a class="code" href="a00278.html#a3027828ace11569163557dd87e67dc5c">ImmGetContext</a>( hAppWnd );</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    hKL = <a class="code" href="a00026.html#a46278f8b1db32b9b4679eee6abc9e1b4">GetKeyboardLayout</a>( <a class="code" href="a00263.html#a1dc37c01a43d34053e1dbf4ee8e0da0a">GetWindowThreadProcessId</a>(hAppWnd, NULL) );</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00290.html#a159f161f022ec8eb7ab7feaed3462dac">HotKeyIDDispatcher</a>( hAppWnd,  hImc, hKL, dwHotKeyID);</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00026_source.html#l03732">GetKeyboardLayout()</a>, <a class="el" href="a00263_source.html#l00211">GetWindowThreadProcessId()</a>, <a class="el" href="a00290_source.html#l00591">HotKeyIDDispatcher()</a> , 以及 <a class="el" href="a00278_source.html#l00161">ImmGetContext()</a>.</p>

</div>
</div>
<a id="a24fb9a95d0840522ea450a58c1d991c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24fb9a95d0840522ea450a58c1d991c6">&#9670;&nbsp;</a></span>JCloseOpen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL JCloseOpen </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hIMC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00649">649</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;{</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160; </div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;    LPINPUTCONTEXT pInputContext;</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;    <a class="code" href="a02061.html">PIMEDPI</a>            pImeDpi;</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160; </div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;<span class="preprocessor">#ifdef LATER</span></div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;<span class="comment">// FJMERGE 95/11/07 K.Aizawa</span></div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;<span class="preprocessor">#if defined(JAPAN) &amp;&amp; defined(_X86_)</span></div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;    WORD KbdType = IsThumbKey();</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160; </div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;    <span class="keywordflow">if</span> ( (pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>( hIMC )) == NULL ) {</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;    <span class="comment">// The return value is same as Win95. </span></div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;    <span class="comment">// Not happens so often any way.</span></div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;    }</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160; </div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;    pImeDpi = <a class="code" href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a>( hCurrentKL );</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;    <span class="keywordflow">if</span> ( pImeDpi != NULL ) {</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;    <span class="comment">// update Input Context</span></div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;        pInputContext-&gt;fOpen = !pInputContext-&gt;fOpen;</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160; </div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;    <span class="comment">// notify IME</span></div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;        (*pImeDpi-&gt;<a class="code" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">pfn</a>.<a class="code" href="a02065.html#a515a62b2ac4cbf98eac675e57915d2c7">NotifyIME</a>)( hIMC,</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;                                   NI_CONTEXTUPDATED,</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;                                   0L,</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;                                   IMC_SETOPENSTATUS );</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;    <span class="comment">// inform UI</span></div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;    <span class="comment">//        </span></div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;        SendMessage(hWnd, WM_IME_NOTIFY, IMN_SETOPENSTATUS, 0L);</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;        SendMessage(hWnd, WM_IME_SYSTEM, IMS_SETOPENSTATUS, 0L);</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160; </div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;        <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>( hIMC );</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160; </div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;<span class="preprocessor">#ifdef LATER</span></div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;<span class="comment">// FJMERGE 95/07/10 K.Aizawa</span></div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;<span class="preprocessor">#if defined(JAPAN) &amp;&amp; defined(_X86_)</span></div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;        <span class="keywordflow">if</span> ((KbdType == MAKEWORD(FMV_KBD_OASYS_TYPE, SUB_KBD_TYPE_FUJITSU)) ||</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;            (KbdType == MAKEWORD(FMR_KBD_OASYS_TYPE, SUB_KBD_TYPE_FUJITSU))) {</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160; </div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;            <span class="keywordflow">if</span> ( pInputContext-&gt;fOpen ) {</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;                <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uRet = ThumbkeyGet31Mode(pInputContext-&gt;fdwConversion);</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;                <span class="keywordflow">if</span> ( uRet &amp; IME_MODE_ALPHANUMERIC ) {</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;                     uRet = 0;  <span class="comment">// 0 is alpanumeric mode.</span></div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;                }</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;                ThumbIoControl( uRet );</div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;                ThumbIoControl( 0 );</div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;            }</div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;        }</div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;<span class="preprocessor">#endif // JAPAN &amp;&amp; _X86_</span></div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160; </div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;        <a class="code" href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a>(pImeDpi);</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160; </div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160; </div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;        <span class="keywordflow">if</span> ( !pInputContext-&gt;fOpen ) {</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;            pInputContext-&gt;fOpen = TRUE;</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;            SendMessage(hWnd, WM_IME_NOTIFY, IMN_SETOPENSTATUS, 0L);</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;            SendMessage(hWnd, WM_IME_SYSTEM, IMS_SETOPENSTATUS, 0L);</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;        }</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;        <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>( hIMC );</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160; </div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00290.html#aa0e0a9dac1c90374ff92df3129a5c382">IMENonIMEToggle</a>(hIMC, hCurrentKL, hWnd, FALSE);</div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;    }</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00290_source.html#l00780">IMENonIMEToggle()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00311_source.html#l00649">ImmLockImeDpi()</a>, <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>, <a class="el" href="a00311_source.html#l00678">ImmUnlockImeDpi()</a>, <a class="el" href="a00344_source.html#l00085">tagIMEDPI::_tagImeFunctions::NotifyIME</a>, <a class="el" href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00591">HotKeyIDDispatcher()</a>.</p>

</div>
</div>
<a id="a34ab8713b440f62e49aca7396078b501"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34ab8713b440f62e49aca7396078b501">&#9670;&nbsp;</a></span>KEnglishHangeul()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL KEnglishHangeul </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hIMC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00591">HotKeyIDDispatcher()</a>.</p>

</div>
</div>
<a id="aca264753730daaafd8b19979ec8b5511"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca264753730daaafd8b19979ec8b5511">&#9670;&nbsp;</a></span>KHanjaConvert()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL KHanjaConvert </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hIMC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00591">HotKeyIDDispatcher()</a>.</p>

</div>
</div>
<a id="a98214bc2c7b6cf81de284d5988c85e7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98214bc2c7b6cf81de284d5988c85e7a">&#9670;&nbsp;</a></span>KShapeToggle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL KShapeToggle </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hIMC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00591">HotKeyIDDispatcher()</a>.</p>

</div>
</div>
<a id="afb45e689185d5e3ec73f92a778a8911d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb45e689185d5e3ec73f92a778a8911d">&#9670;&nbsp;</a></span>NumToHexAscii() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID NumToHexAscii </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PWSTR&#160;</td>
          <td class="paramname"><em>szAscii</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00571">571</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;{</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160; </div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    <span class="keywordflow">for</span> ( i = 7; i &gt;= 0; i--) {</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;        szAscii[i] = <a class="code" href="a00290.html#a3c47385a6c0c83f1baece0767254a90e">szHexString</a>[ dwNum &amp; 0x0000000f ];</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;        dwNum &gt;&gt;= 4;</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;    }</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    szAscii[8] = TEXT(<span class="charliteral">&#39;\0&#39;</span>);</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160; </div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00290_source.html#l00568">szHexString</a>.</p>

</div>
</div>
<a id="a98850fc49533deeaede9de02aca59a00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98850fc49533deeaede9de02aca59a00">&#9670;&nbsp;</a></span>NumToHexAscii() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID NumToHexAscii </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PTSTR&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00384">SaveImeHotKey()</a>.</p>

</div>
</div>
<a id="a8c1a135c5a98d4104ee2717ed98ec312"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c1a135c5a98d4104ee2717ed98ec312">&#9670;&nbsp;</a></span>ReadRegistryValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> ReadRegistryValue </td>
          <td>(</td>
          <td class="paramtype">HANDLE&#160;</td>
          <td class="paramname"><em>hKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PWSTR&#160;</td>
          <td class="paramname"><em>pName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00214">214</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;{</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    BYTE ValueBuffer[<span class="keyword">sizeof</span>(KEY_VALUE_PARTIAL_INFORMATION) + 16 * <span class="keyword">sizeof</span>(UCHAR)];</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    PKEY_VALUE_PARTIAL_INFORMATION pKeyValue;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    UNICODE_STRING      ValueName;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    ULONG ResultLength;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    NTSTATUS Status;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; </div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    pKeyValue = (PKEY_VALUE_PARTIAL_INFORMATION)ValueBuffer;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160; </div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    RtlInitUnicodeString( &amp;ValueName, pName );</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    Status = NtQueryValueKey( hKey,</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;                              &amp;ValueName,</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;                              KeyValuePartialInformation,</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;                              pKeyValue,</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                              <span class="keyword">sizeof</span>(ValueBuffer),</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;                              &amp;ResultLength );</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    </div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    <span class="keywordflow">if</span> ( NT_SUCCESS(Status) &amp;&amp; pKeyValue-&gt;DataLength &gt; 3 ) {</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        <span class="comment">// In Win95 registry, these items are written as BYTE data...</span></div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        <span class="keywordflow">return</span> ( (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)(MAKEWORD( pKeyValue-&gt;Data[0], pKeyValue-&gt;Data[1])) |</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                 (((<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)(MAKEWORD( pKeyValue-&gt;Data[2], pKeyValue-&gt;Data[3]))) &lt;&lt; 16) );</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    }</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00244">SetSingleHotKey()</a>.</p>

</div>
</div>
<a id="af56ab3544d3ab492c5d966b4c9469266"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af56ab3544d3ab492c5d966b4c9469266">&#9670;&nbsp;</a></span>SaveImeHotKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL SaveImeHotKey </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>uModifiers</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>uVKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hkl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fDelete</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00384">384</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;{</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    HKEY hKey, hKeyParent;</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> i;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    LONG lResult;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    TCHAR szHex[16];</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160; </div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    <span class="keywordflow">if</span> ( fDelete ) {</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160; </div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        TCHAR szRegTmp[ (<span class="keyword">sizeof</span>(<a class="code" href="a00290.html#a02fed740dc6585f5f7b32bf34008b6ad">szRegImeHotKey</a>) / <span class="keyword">sizeof</span>(TCHAR) + 1 + 8 + 1) ];</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    </div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;        lstrcpy( szRegTmp, <a class="code" href="a00290.html#a02fed740dc6585f5f7b32bf34008b6ad">szRegImeHotKey</a> );</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        lstrcat(szRegTmp, TEXT(<span class="stringliteral">&quot;\\&quot;</span>));</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        <a class="code" href="a00290.html#a98850fc49533deeaede9de02aca59a00">NumToHexAscii</a>( <span class="keywordtype">id</span>, szHex );</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;        lstrcat(szRegTmp, szHex);</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160; </div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;        lResult = RegDeleteKey( HKEY_CURRENT_USER, szRegTmp);</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <span class="keywordflow">if</span> ( lResult != ERROR_SUCCESS ) {</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;            <a class="code" href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a>( lResult, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, </div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;                     <span class="stringliteral">&quot;SaveImeHotKey:deleting %s failed&quot;</span>, szRegTmp);</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;            <span class="keywordflow">return</span> ( FALSE );</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        }</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        <span class="keywordflow">return</span> ( TRUE );</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    }</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160; </div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    hKeyParent = HKEY_CURRENT_USER;</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    <span class="keywordflow">for</span> ( i = 0; <a class="code" href="a00290.html#a5a5d5f37972b6a7484c6726521d83c7e">szaRegImmHotKeys</a>[i] != NULL; i++ ) {</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        lResult = RegCreateKeyEx( hKeyParent,</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;                                  <a class="code" href="a00290.html#a5a5d5f37972b6a7484c6726521d83c7e">szaRegImmHotKeys</a>[i],</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;                                  0,</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;                                  NULL,</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;                                  REG_OPTION_NON_VOLATILE,</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;                                  KEY_WRITE|KEY_READ,</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;                                  NULL,</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;                                  &amp;hKey,</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;                                  NULL );</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;        RegCloseKey( hKeyParent );</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <span class="keywordflow">if</span> ( lResult == ERROR_SUCCESS ) {</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;            hKeyParent = hKey;</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;            <a class="code" href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a>( lResult, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, </div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;                     <span class="stringliteral">&quot;SaveImeHotKey:creating %s failed&quot;</span>, <a class="code" href="a00290.html#a5a5d5f37972b6a7484c6726521d83c7e">szaRegImmHotKeys</a>[i]);</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160; </div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;            <span class="keywordflow">return</span> ( FALSE );</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        }</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;    } </div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160; </div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    <a class="code" href="a00290.html#a98850fc49533deeaede9de02aca59a00">NumToHexAscii</a>( <span class="keywordtype">id</span>, szHex );</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    lResult = RegCreateKeyEx( hKeyParent,</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;                              szHex,</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;                              0,</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;                              NULL,</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;                              REG_OPTION_NON_VOLATILE,</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;                              KEY_WRITE|KEY_READ,</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;                              NULL,</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;                              &amp;hKey,</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;                              NULL );</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    RegCloseKey( hKeyParent );</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;    <span class="keywordflow">if</span> ( lResult != ERROR_SUCCESS ) {</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;        <a class="code" href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a>( lResult, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, </div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;                 <span class="stringliteral">&quot;SaveImeHotKey:creating %s failed&quot;</span>, szHex );</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;        <span class="keywordflow">return</span> ( FALSE );</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    }</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160; </div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    lResult = RegSetValueEx( hKey, </div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;                             <a class="code" href="a00290.html#a588ef18751a8ca67b4059fb29ecc8b3c">szRegVK</a>,</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;                             0, </div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;                             REG_BINARY, </div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;                            (LPBYTE)&amp;vk, </div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;                            <span class="keyword">sizeof</span>(<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>) ); </div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;    <span class="keywordflow">if</span> ( lResult != ERROR_SUCCESS ) {</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        RegCloseKey( hKey );</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        <a class="code" href="a00290.html#af56ab3544d3ab492c5d966b4c9469266">SaveImeHotKey</a>( <span class="keywordtype">id</span>, vk, mod, hkl, TRUE );</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;        <a class="code" href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a>( lResult, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, </div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;                 <span class="stringliteral">&quot;SaveImeHotKey:setting value on %s failed&quot;</span>, <a class="code" href="a00290.html#a588ef18751a8ca67b4059fb29ecc8b3c">szRegVK</a> );</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;        <span class="keywordflow">return</span> ( FALSE );</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;    } </div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    lResult = RegSetValueEx( hKey, </div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;                             <a class="code" href="a00290.html#a1eb49c7843a1f209788fc987b91626bb">szRegMOD</a>, </div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;                             0, </div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;                             REG_BINARY, </div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;                            (LPBYTE)&amp;mod, </div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;                            <span class="keyword">sizeof</span>(<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>) ); </div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160; </div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    <span class="keywordflow">if</span> ( lResult != ERROR_SUCCESS ) {</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        RegCloseKey( hKey );</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;        <a class="code" href="a00290.html#af56ab3544d3ab492c5d966b4c9469266">SaveImeHotKey</a>( <span class="keywordtype">id</span>, vk, mod, hkl, TRUE );</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;        <a class="code" href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a>( lResult, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, </div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;                 <span class="stringliteral">&quot;SaveImeHotKey:setting value on %s failed&quot;</span>, <a class="code" href="a00290.html#a1eb49c7843a1f209788fc987b91626bb">szRegMOD</a> );</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;        <span class="keywordflow">return</span> ( FALSE );</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    } </div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160; </div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    lResult = RegSetValueEx( hKey, </div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;                             <a class="code" href="a00290.html#ab3227adc9bfdc09955b9d3fd32e17fef">szRegHKL</a>, </div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;                             0, </div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;                             REG_BINARY, </div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;                            (LPBYTE)&amp;hkl, </div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;                            <span class="keyword">sizeof</span>(<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>) ); </div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160; </div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    <span class="keywordflow">if</span> ( lResult != ERROR_SUCCESS ) {</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;        RegCloseKey( hKey );</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;        <a class="code" href="a00290.html#af56ab3544d3ab492c5d966b4c9469266">SaveImeHotKey</a>( <span class="keywordtype">id</span>, vk, mod, hkl, TRUE );</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        <a class="code" href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a>( lResult, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, </div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;                 <span class="stringliteral">&quot;SaveImeHotKey:setting value on %s failed&quot;</span>, <a class="code" href="a00290.html#ab3227adc9bfdc09955b9d3fd32e17fef">szRegHKL</a> );</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;        <span class="keywordflow">return</span> ( FALSE );</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    } </div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160; </div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    RegCloseKey( hKey );</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <span class="keywordflow">return</span> ( TRUE );</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00290.html#a98850fc49533deeaede9de02aca59a00">NumToHexAscii()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00120">RIPERR1</a>, <a class="el" href="a00290_source.html#l00036">szaRegImmHotKeys</a>, <a class="el" href="a00290_source.html#l00045">szRegHKL</a>, <a class="el" href="a00290_source.html#l00041">szRegImeHotKey</a>, <a class="el" href="a00290_source.html#l00044">szRegMOD</a> , 以及 <a class="el" href="a00290_source.html#l00043">szRegVK</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00310">ImmSetHotKey()</a>.</p>

</div>
</div>
<a id="af049c94d40ae862e4a06fead369ae652"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af049c94d40ae862e4a06fead369ae652">&#9670;&nbsp;</a></span>SetDefaultImeHotKeys()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID SetDefaultImeHotKeys </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00341.html#a266b36e663e29a015c8bf40d68393d8d">PIMEHOTKEY</a>&#160;</td>
          <td class="paramname"><em>ph</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fCheckExistingHotKey</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00123">123</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;{</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <a class="code" href="a02049.html">IMEHOTKEY</a> hkt;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keywordflow">while</span>( num-- &gt; 0 ) {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="comment">// Set IME hotkey only if there is no such</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="comment">// hotkey in the registry</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keywordflow">if</span> ( !fNeedToCheckExistingHotKey || </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;             !<a class="code" href="a00290.html#ab182755bc3002965f65aac6a072f0bc0">ImmGetHotKey</a>( ph-&gt;<a class="code" href="a02049.html#a28b485dbae7febc36ac45af40be60271">dwHotKeyID</a>, </div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;                            &amp;hkt.<a class="code" href="a02049.html#a1002de7568af179aa8794e9da4f3f279">uModifiers</a>,</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                            &amp;hkt.<a class="code" href="a02049.html#a29c54503aa187b8e4452140cb7e6629f">uVKey</a>,</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                            &amp;hkt.<a class="code" href="a02049.html#a193b0c2e24d821084e237bb1c54e8cc4">hKL</a> ) ) {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;            <a class="code" href="a00290.html#a723d9ff773cafab64424bec3d32c2921">ImmSetHotKeyWorker</a>( ph-&gt;<a class="code" href="a02049.html#a28b485dbae7febc36ac45af40be60271">dwHotKeyID</a>,</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                                ph-&gt;<a class="code" href="a02049.html#a1002de7568af179aa8794e9da4f3f279">uModifiers</a>,</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                                ph-&gt;<a class="code" href="a02049.html#a29c54503aa187b8e4452140cb7e6629f">uVKey</a>, </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                                ph-&gt;<a class="code" href="a02049.html#a193b0c2e24d821084e237bb1c54e8cc4">hKL</a>, </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;                                <a class="code" href="a00341.html#a978064f0ef1e2603367fda2b3d28900f">ISHK_ADD</a> );</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        }    </div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        ph++;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    }</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00341_source.html#l00071">_tagIMEHOTKEY::dwHotKeyID</a>, <a class="el" href="a00341_source.html#l00074">_tagIMEHOTKEY::hKL</a>, <a class="el" href="a00290_source.html#l00290">ImmGetHotKey()</a>, <a class="el" href="a00290_source.html#l00495">ImmSetHotKeyWorker()</a>, <a class="el" href="a00341_source.html#l00067">ISHK_ADD</a>, <a class="el" href="a00341_source.html#l00073">_tagIMEHOTKEY::uModifiers</a> , 以及 <a class="el" href="a00341_source.html#l00072">_tagIMEHOTKEY::uVKey</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="a0db6f826e55aea5a34f592b6a897dcd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0db6f826e55aea5a34f592b6a897dcd5">&#9670;&nbsp;</a></span>SetSingleHotKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL SetSingleHotKey </td>
          <td>(</td>
          <td class="paramtype">PKEY_BASIC_INFORMATION&#160;</td>
          <td class="paramname"><em>pKeyInfo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HANDLE&#160;</td>
          <td class="paramname"><em>hKey</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00244">244</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;{</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    UNICODE_STRING      SubKeyName;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    HANDLE    hKeySingleHotKey;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    OBJECT_ATTRIBUTES   Obja;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwID = 0;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>  uVKey = 0; </div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>  uModifiers = 0;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    HKL   hKL = NULL;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160; </div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    NTSTATUS Status;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    SubKeyName.Buffer = (PWSTR)&amp;(pKeyInfo-&gt;Name[0]);</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    SubKeyName.Length = (USHORT)pKeyInfo-&gt;NameLength;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    SubKeyName.MaximumLength = (USHORT)pKeyInfo-&gt;NameLength;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    InitializeObjectAttributes( &amp;Obja,</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                                &amp;SubKeyName,</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;                                OBJ_CASE_INSENSITIVE, </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                                hKey, </div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                                NULL );</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    Status = NtOpenKey( &amp;hKeySingleHotKey, KEY_READ, &amp;Obja );</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="keywordflow">if</span> (!NT_SUCCESS(Status)) {</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    }</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; </div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    RtlUnicodeStringToInteger( &amp;SubKeyName, 16L, &amp;dwID ); </div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    uVKey = <a class="code" href="a00290.html#a8c1a135c5a98d4104ee2717ed98ec312">ReadRegistryValue</a>( hKeySingleHotKey, <a class="code" href="a00290.html#a588ef18751a8ca67b4059fb29ecc8b3c">szRegVK</a> );</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    uModifiers = <a class="code" href="a00290.html#a8c1a135c5a98d4104ee2717ed98ec312">ReadRegistryValue</a>( hKeySingleHotKey, <a class="code" href="a00290.html#a1eb49c7843a1f209788fc987b91626bb">szRegMOD</a> );</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    hKL = (HKL)<a class="code" href="a00290.html#a8c1a135c5a98d4104ee2717ed98ec312">ReadRegistryValue</a>( hKeySingleHotKey, <a class="code" href="a00290.html#ab3227adc9bfdc09955b9d3fd32e17fef">szRegHKL</a> );</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160; </div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    NtClose( hKeySingleHotKey );</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00290.html#a723d9ff773cafab64424bec3d32c2921">ImmSetHotKeyWorker</a>( dwID, uModifiers, uVKey, hKL, <a class="code" href="a00341.html#a978064f0ef1e2603367fda2b3d28900f">ISHK_ADD</a>);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00290_source.html#l00495">ImmSetHotKeyWorker()</a>, <a class="el" href="a00341_source.html#l00067">ISHK_ADD</a>, <a class="el" href="a00290_source.html#l00214">ReadRegistryValue()</a>, <a class="el" href="a00290_source.html#l00045">szRegHKL</a>, <a class="el" href="a00290_source.html#l00044">szRegMOD</a>, <a class="el" href="a00290_source.html#l00043">szRegVK</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00149">GetImeHotKeysFromRegistry()</a>.</p>

</div>
</div>
<a id="a1ebfa165d5401811c7df846ab4b12e46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ebfa165d5401811c7df846ab4b12e46">&#9670;&nbsp;</a></span>TShapeToggle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL TShapeToggle </td>
          <td>(</td>
          <td class="paramtype">HIMC&#160;</td>
          <td class="paramname"><em>hIMC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HKL&#160;</td>
          <td class="paramname"><em>hKL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00895">895</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;{</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;    LPINPUTCONTEXT pInputContext;</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160; </div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;    <span class="comment">// Return TRUE even no layout switching - Win95 behavior</span></div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;    <span class="keywordflow">if</span> (hWnd == NULL)</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160; </div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;    <span class="keywordflow">if</span> ( ! <a class="code" href="a00308.html#a1049d5ab2aa00c19da40b532e7470340">ImmIsIME</a>( hKL ) ) {</div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;        <span class="keywordflow">return</span> (FALSE);</div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;    }</div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160; </div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;    <span class="keywordflow">if</span> ( (pInputContext = <a class="code" href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a>( hIMC )) == NULL ) {</div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;        <span class="comment">// The return value is same as Win95. </span></div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;        <span class="comment">// Not happens so often any way.</span></div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;    }</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160; </div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;    <span class="keywordflow">if</span> (pInputContext-&gt;fOpen) {</div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;        <span class="comment">// toggle the symbol mode</span></div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;        <a class="code" href="a00281.html#aa8b403df420fbce8bc11b8c26d67b73e">ImmSetConversionStatus</a>(hIMC,</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;                               pInputContext-&gt;fdwConversion ^ IME_CMODE_FULLSHAPE,</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;                               pInputContext-&gt;fdwSentence);</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;    }</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;        <span class="comment">// change close -&gt; open</span></div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;        <a class="code" href="a00281.html#a5e0c7331ea0751d2c642cc4207e6632b">ImmSetOpenStatus</a>(hIMC, TRUE);</div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;    }</div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160; </div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;    <a class="code" href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a>(hIMC);</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;    <span class="keywordflow">return</span> (TRUE);</div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00308_source.html#l00279">ImmIsIME()</a>, <a class="el" href="a00311_source.html#l00243">ImmLockIMC()</a>, <a class="el" href="a00281_source.html#l01262">ImmSetConversionStatus()</a>, <a class="el" href="a00281_source.html#l01364">ImmSetOpenStatus()</a> , 以及 <a class="el" href="a00311_source.html#l00302">ImmUnlockIMC()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00591">HotKeyIDDispatcher()</a>.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="ac2a3547cf7aa2440b6aa5e1993d793c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2a3547cf7aa2440b6aa5e1993d793c6">&#9670;&nbsp;</a></span>DefaultHotKeyNumC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> DefaultHotKeyNumC = sizeof(<a class="el" href="a00290.html#a11c0d7986011af848222b788aba333a3">DefaultHotKeyTableC</a>) / sizeof(<a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00074">74</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="abd805550da61afa38355cd1cd6b30e29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd805550da61afa38355cd1cd6b30e29">&#9670;&nbsp;</a></span>DefaultHotKeyNumJ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> DefaultHotKeyNumJ = sizeof(<a class="el" href="a00290.html#accbde14628a83458fcb4bb4f185e1d4a">DefaultHotKeyTableJ</a>) / sizeof(<a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00055">55</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="a7cec1255c18441ed7a8a6bd070a9bd10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cec1255c18441ed7a8a6bd070a9bd10">&#9670;&nbsp;</a></span>DefaultHotKeyNumK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> DefaultHotKeyNumK = sizeof(<a class="el" href="a00290.html#a1c1bbca623bcff5393fe0becf1083f06">DefaultHotKeyTableK</a>) / sizeof(<a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00062">62</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="abe4753787abf4b7d8284900c32abbe8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe4753787abf4b7d8284900c32abbe8a">&#9670;&nbsp;</a></span>DefaultHotKeyNumT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> DefaultHotKeyNumT = sizeof(<a class="el" href="a00290.html#a928e85672e6ae1095fd67d64fceed206">DefaultHotKeyTableT</a>) / sizeof(<a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00068">68</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="a11c0d7986011af848222b788aba333a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11c0d7986011af848222b788aba333a3">&#9670;&nbsp;</a></span>DefaultHotKeyTableC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a> DefaultHotKeyTableC[]</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>初始值:</b><div class="fragment"><div class="line">= {</div>
<div class="line">{ IME_CHOTKEY_IME_NONIME_TOGGLE, VK_SPACE, <a class="code" href="a00341.html#ab919ec4d5f075c2c9d250c43cf146fb7">MOD_BOTH_SIDES</a>|MOD_CONTROL, NULL },</div>
<div class="line">{ IME_CHOTKEY_SHAPE_TOGGLE, VK_SPACE, <a class="code" href="a00341.html#ab919ec4d5f075c2c9d250c43cf146fb7">MOD_BOTH_SIDES</a>|MOD_SHIFT,  NULL }</div>
<div class="line">}</div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00070">70</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="accbde14628a83458fcb4bb4f185e1d4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accbde14628a83458fcb4bb4f185e1d4a">&#9670;&nbsp;</a></span>DefaultHotKeyTableJ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a> DefaultHotKeyTableJ[]</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>初始值:</b><div class="fragment"><div class="line">= {</div>
<div class="line">{IME_JHOTKEY_CLOSE_OPEN, VK_KANJI, MOD_IGNORE_ALL_MODIFIER, NULL}</div>
<div class="line">}</div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00052">52</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="a1c1bbca623bcff5393fe0becf1083f06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c1bbca623bcff5393fe0becf1083f06">&#9670;&nbsp;</a></span>DefaultHotKeyTableK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a> DefaultHotKeyTableK[]</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>初始值:</b><div class="fragment"><div class="line">= { </div>
<div class="line">{ IME_KHOTKEY_ENGLISH,  VK_HANGEUL, MOD_IGNORE_ALL_MODIFIER,  NULL },</div>
<div class="line">{ IME_KHOTKEY_SHAPE_TOGGLE, VK_JUNJA, MOD_IGNORE_ALL_MODIFIER,  NULL },</div>
<div class="line">{ IME_KHOTKEY_HANJACONVERT, VK_HANJA, MOD_IGNORE_ALL_MODIFIER, NULL }</div>
<div class="line">}</div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00057">57</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="a928e85672e6ae1095fd67d64fceed206"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a928e85672e6ae1095fd67d64fceed206">&#9670;&nbsp;</a></span>DefaultHotKeyTableT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00341.html#a727205a6e8b112d8f9653fa1c282f1bb">IMEHOTKEY</a> DefaultHotKeyTableT[]</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>初始值:</b><div class="fragment"><div class="line">= {</div>
<div class="line">{ IME_THOTKEY_IME_NONIME_TOGGLE, VK_SPACE, <a class="code" href="a00341.html#ab919ec4d5f075c2c9d250c43cf146fb7">MOD_BOTH_SIDES</a>|MOD_CONTROL, NULL },</div>
<div class="line">{ IME_THOTKEY_SHAPE_TOGGLE, VK_SPACE, <a class="code" href="a00341.html#ab919ec4d5f075c2c9d250c43cf146fb7">MOD_BOTH_SIDES</a>|MOD_SHIFT,  NULL }</div>
<div class="line">}</div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00064">64</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00086">ImmInitializeHotKeys()</a>.</p>

</div>
</div>
<a id="a5a5d5f37972b6a7484c6726521d83c7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a5d5f37972b6a7484c6726521d83c7e">&#9670;&nbsp;</a></span>szaRegImmHotKeys</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TCHAR* szaRegImmHotKeys[]</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>初始值:</b><div class="fragment"><div class="line">= { TEXT(<span class="stringliteral">&quot;Control Panel&quot;</span>),</div>
<div class="line">                              TEXT(<span class="stringliteral">&quot;Input Method&quot;</span>),</div>
<div class="line">                              TEXT(<span class="stringliteral">&quot;Hot Keys&quot;</span>),</div>
<div class="line">                              NULL }</div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00036">36</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00384">SaveImeHotKey()</a>.</p>

</div>
</div>
<a id="a3c47385a6c0c83f1baece0767254a90e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c47385a6c0c83f1baece0767254a90e">&#9670;&nbsp;</a></span>szHexString</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TCHAR szHexString[] = TEXT(&quot;0123456789ABCDEF&quot;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00568">568</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00571">NumToHexAscii()</a>.</p>

</div>
</div>
<a id="ab3227adc9bfdc09955b9d3fd32e17fef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3227adc9bfdc09955b9d3fd32e17fef">&#9670;&nbsp;</a></span>szRegHKL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TCHAR szRegHKL[] = TEXT(&quot;Target IME&quot;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00045">45</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00384">SaveImeHotKey()</a> , 以及 <a class="el" href="a00290_source.html#l00244">SetSingleHotKey()</a>.</p>

</div>
</div>
<a id="a02fed740dc6585f5f7b32bf34008b6ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02fed740dc6585f5f7b32bf34008b6ad">&#9670;&nbsp;</a></span>szRegImeHotKey</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TCHAR szRegImeHotKey[] = TEXT(&quot;Control Panel\\Input Method\\Hot Keys&quot;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00041">41</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00149">GetImeHotKeysFromRegistry()</a> , 以及 <a class="el" href="a00290_source.html#l00384">SaveImeHotKey()</a>.</p>

</div>
</div>
<a id="a1eb49c7843a1f209788fc987b91626bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1eb49c7843a1f209788fc987b91626bb">&#9670;&nbsp;</a></span>szRegMOD</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TCHAR szRegMOD[] = TEXT(&quot;Key Modifiers&quot;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00044">44</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00384">SaveImeHotKey()</a> , 以及 <a class="el" href="a00290_source.html#l00244">SetSingleHotKey()</a>.</p>

</div>
</div>
<a id="a588ef18751a8ca67b4059fb29ecc8b3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a588ef18751a8ca67b4059fb29ecc8b3c">&#9670;&nbsp;</a></span>szRegVK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TCHAR szRegVK[] = TEXT(&quot;Virtual Key&quot;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00290_source.html">hotkey.c</a> 第 <a class="el" href="a00290_source.html#l00043">43</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00290_source.html#l00384">SaveImeHotKey()</a> , 以及 <a class="el" href="a00290_source.html#l00244">SetSingleHotKey()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00281_html_aa8b403df420fbce8bc11b8c26d67b73e"><div class="ttname"><a href="a00281.html#aa8b403df420fbce8bc11b8c26d67b73e">ImmSetConversionStatus</a></div><div class="ttdeci">BOOL WINAPI ImmSetConversionStatus(HIMC hImc, DWORD fdwConversion, DWORD fdwSentence)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l01262">ctxtinfo.c:1262</a></div></div>
<div class="ttc" id="aa00308_html_a1049d5ab2aa00c19da40b532e7470340"><div class="ttname"><a href="a00308.html#a1049d5ab2aa00c19da40b532e7470340">ImmIsIME</a></div><div class="ttdeci">BOOL WINAPI ImmIsIME(HKL hKL)</div><div class="ttdef"><b>Definition:</b> <a href="a00308_source.html#l00279">layout.c:279</a></div></div>
<div class="ttc" id="aa00290_html_aa0e0a9dac1c90374ff92df3129a5c382"><div class="ttname"><a href="a00290.html#aa0e0a9dac1c90374ff92df3129a5c382">IMENonIMEToggle</a></div><div class="ttdeci">BOOL IMENonIMEToggle(HIMC hIMC, HKL hKL, HWND hWnd, BOOL fIME)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00780">hotkey.c:780</a></div></div>
<div class="ttc" id="aa00311_html_a476139459ee89728a91d341e1b72fb39"><div class="ttname"><a href="a00311.html#a476139459ee89728a91d341e1b72fb39">ImmUnlockImeDpi</a></div><div class="ttdeci">VOID WINAPI ImmUnlockImeDpi(PIMEDPI pImeDpi)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00678">misc.c:678</a></div></div>
<div class="ttc" id="aa00290_html_af049c94d40ae862e4a06fead369ae652"><div class="ttname"><a href="a00290.html#af049c94d40ae862e4a06fead369ae652">SetDefaultImeHotKeys</a></div><div class="ttdeci">VOID SetDefaultImeHotKeys(PIMEHOTKEY ph, INT num, BOOL fCheckExistingHotKey)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00123">hotkey.c:123</a></div></div>
<div class="ttc" id="aa00290_html_af56ab3544d3ab492c5d966b4c9469266"><div class="ttname"><a href="a00290.html#af56ab3544d3ab492c5d966b4c9469266">SaveImeHotKey</a></div><div class="ttdeci">BOOL SaveImeHotKey(DWORD dwID, UINT uModifiers, UINT uVKey, HKL hkl, BOOL fDelete)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00384">hotkey.c:384</a></div></div>
<div class="ttc" id="aa00290_html_a98214bc2c7b6cf81de284d5988c85e7a"><div class="ttname"><a href="a00290.html#a98214bc2c7b6cf81de284d5988c85e7a">KShapeToggle</a></div><div class="ttdeci">BOOL KShapeToggle(HIMC hIMC, HKL hKL, HWND hWnd)</div></div>
<div class="ttc" id="aa00290_html_a1ebfa165d5401811c7df846ab4b12e46"><div class="ttname"><a href="a00290.html#a1ebfa165d5401811c7df846ab4b12e46">TShapeToggle</a></div><div class="ttdeci">BOOL TShapeToggle(HIMC hIMC, HKL hKL, HWND hWnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00895">hotkey.c:895</a></div></div>
<div class="ttc" id="aa00290_html_a928e85672e6ae1095fd67d64fceed206"><div class="ttname"><a href="a00290.html#a928e85672e6ae1095fd67d64fceed206">DefaultHotKeyTableT</a></div><div class="ttdeci">IMEHOTKEY DefaultHotKeyTableT[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00064">hotkey.c:64</a></div></div>
<div class="ttc" id="aa00281_html_a5e0c7331ea0751d2c642cc4207e6632b"><div class="ttname"><a href="a00281.html#a5e0c7331ea0751d2c642cc4207e6632b">ImmSetOpenStatus</a></div><div class="ttdeci">BOOL WINAPI ImmSetOpenStatus(HIMC hImc, BOOL fOpen)</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l01364">ctxtinfo.c:1364</a></div></div>
<div class="ttc" id="aa00341_html_aa968df90be5e9b0fbaacebcd15dab627"><div class="ttname"><a href="a00341.html#aa968df90be5e9b0fbaacebcd15dab627">ISHK_INITIALIZE</a></div><div class="ttdeci">#define ISHK_INITIALIZE</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00068">immstruc.h:68</a></div></div>
<div class="ttc" id="aa00263_html_a1dc37c01a43d34053e1dbf4ee8e0da0a"><div class="ttname"><a href="a00263.html#a1dc37c01a43d34053e1dbf4ee8e0da0a">GetWindowThreadProcessId</a></div><div class="ttdeci">DWORD GetWindowThreadProcessId(HWND hwnd, LPDWORD lpdwProcessId)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00211">winmgrc.c:211</a></div></div>
<div class="ttc" id="aa00290_html_a8c1a135c5a98d4104ee2717ed98ec312"><div class="ttname"><a href="a00290.html#a8c1a135c5a98d4104ee2717ed98ec312">ReadRegistryValue</a></div><div class="ttdeci">DWORD ReadRegistryValue(HANDLE hKey, PWSTR pName)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00214">hotkey.c:214</a></div></div>
<div class="ttc" id="aa00290_html_abd805550da61afa38355cd1cd6b30e29"><div class="ttname"><a href="a00290.html#abd805550da61afa38355cd1cd6b30e29">DefaultHotKeyNumJ</a></div><div class="ttdeci">INT DefaultHotKeyNumJ</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00055">hotkey.c:55</a></div></div>
<div class="ttc" id="aa00290_html_a0db6f826e55aea5a34f592b6a897dcd5"><div class="ttname"><a href="a00290.html#a0db6f826e55aea5a34f592b6a897dcd5">SetSingleHotKey</a></div><div class="ttdeci">BOOL SetSingleHotKey(PKEY_BASIC_INFORMATION pKeyInfo, HANDLE hKey)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00244">hotkey.c:244</a></div></div>
<div class="ttc" id="aa00290_html_a1c1bbca623bcff5393fe0becf1083f06"><div class="ttname"><a href="a00290.html#a1c1bbca623bcff5393fe0becf1083f06">DefaultHotKeyTableK</a></div><div class="ttdeci">IMEHOTKEY DefaultHotKeyTableK[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00057">hotkey.c:57</a></div></div>
<div class="ttc" id="aa00953_html_a392e62da233ed3e2f7c3fd4f487a3896"><div class="ttname"><a href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a></div><div class="ttdeci">int INT</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00006">bench.c:6</a></div></div>
<div class="ttc" id="aa02049_html"><div class="ttname"><a href="a02049.html">_tagIMEHOTKEY</a></div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00070">immstruc.h:70</a></div></div>
<div class="ttc" id="aa03611_html_a2af1fea76a3d4039e988f3b3cb376be8"><div class="ttname"><a href="a03611.html#a2af1fea76a3d4039e988f3b3cb376be8">GetKeyboardLayoutList</a></div><div class="ttdeci">int GetKeyboardLayoutList(int nItems, HKL *lpBuff)</div><div class="ttdef"><b>Definition:</b> <a href="a03611_source.html#l01560">client/ntstubs.c:1560</a></div></div>
<div class="ttc" id="aa00290_html_accbde14628a83458fcb4bb4f185e1d4a"><div class="ttname"><a href="a00290.html#accbde14628a83458fcb4bb4f185e1d4a">DefaultHotKeyTableJ</a></div><div class="ttdeci">IMEHOTKEY DefaultHotKeyTableJ[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00052">hotkey.c:52</a></div></div>
<div class="ttc" id="aa00257_html_a8315d2c807ba18ba9e528c40614b6173"><div class="ttname"><a href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a></div><div class="ttdeci">PTHREADINFO PtiCurrent(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00526">winmgrc.c:526</a></div></div>
<div class="ttc" id="aa00356_html_a3f53b9d5a549a62853c4e3fb22b649d7"><div class="ttname"><a href="a00356.html#a3f53b9d5a549a62853c4e3fb22b649d7">PostMessage</a></div><div class="ttdeci">BOOL APIENTRY PostMessage(HWND hwnd, UINT wMsg, WPARAM wParam, LPARAM lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00356_source.html#l00471">ntcftxt.h:471</a></div></div>
<div class="ttc" id="aa00290_html_a33800c2717617b9775666d62b38a6d63"><div class="ttname"><a href="a00290.html#a33800c2717617b9775666d62b38a6d63">CSymbolToggle</a></div><div class="ttdeci">BOOL CSymbolToggle(HIMC hIMC, HKL hKL, HWND hWnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00845">hotkey.c:845</a></div></div>
<div class="ttc" id="aa00341_html_ab919ec4d5f075c2c9d250c43cf146fb7"><div class="ttname"><a href="a00341.html#ab919ec4d5f075c2c9d250c43cf146fb7">MOD_BOTH_SIDES</a></div><div class="ttdeci">#define MOD_BOTH_SIDES</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00065">immstruc.h:65</a></div></div>
<div class="ttc" id="aa00341_html_a324a2e861f60c2842615a00c7027016f"><div class="ttname"><a href="a00341.html#a324a2e861f60c2842615a00c7027016f">NtUserGetImeHotKey</a></div><div class="ttdeci">BOOL NtUserGetImeHotKey(DWORD dwID, PUINT puModifiers, PUINT puVKey, HKL *phkl)</div></div>
<div class="ttc" id="aa00290_html_a11c0d7986011af848222b788aba333a3"><div class="ttname"><a href="a00290.html#a11c0d7986011af848222b788aba333a3">DefaultHotKeyTableC</a></div><div class="ttdeci">IMEHOTKEY DefaultHotKeyTableC[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00070">hotkey.c:70</a></div></div>
<div class="ttc" id="aa02065_html_a515a62b2ac4cbf98eac675e57915d2c7"><div class="ttname"><a href="a02065.html#a515a62b2ac4cbf98eac675e57915d2c7">tagIMEDPI::_tagImeFunctions::NotifyIME</a></div><div class="ttdeci">PFNNOTIFY NotifyIME</div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00085">immuser.h:85</a></div></div>
<div class="ttc" id="aa00311_html_a321a0bacc1c67d1fefea199d0c6f4612"><div class="ttname"><a href="a00311.html#a321a0bacc1c67d1fefea199d0c6f4612">ImmLockImeDpi</a></div><div class="ttdeci">PIMEDPI WINAPI ImmLockImeDpi(HKL hKL)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00649">misc.c:649</a></div></div>
<div class="ttc" id="aa00290_html_ab182755bc3002965f65aac6a072f0bc0"><div class="ttname"><a href="a00290.html#ab182755bc3002965f65aac6a072f0bc0">ImmGetHotKey</a></div><div class="ttdeci">BOOL WINAPI ImmGetHotKey(DWORD dwID, PUINT puModifiers, PUINT puVKey, HKL *phkl)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00290">hotkey.c:290</a></div></div>
<div class="ttc" id="aa00371_html_ae61d954062a9ece52e350e54cad9a23d"><div class="ttname"><a href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a></div><div class="ttdeci">#define RIPERR0(idErr, flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00119">winerrp.h:119</a></div></div>
<div class="ttc" id="aa00290_html_aec2ee4d8404100149f7614f5d9273117"><div class="ttname"><a href="a00290.html#aec2ee4d8404100149f7614f5d9273117">CIMENonIMEToggle</a></div><div class="ttdeci">BOOL CIMENonIMEToggle(HIMC hIMC, HKL hKL, HWND hWnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00736">hotkey.c:736</a></div></div>
<div class="ttc" id="aa00290_html_a1eb49c7843a1f209788fc987b91626bb"><div class="ttname"><a href="a00290.html#a1eb49c7843a1f209788fc987b91626bb">szRegMOD</a></div><div class="ttdeci">TCHAR szRegMOD[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00044">hotkey.c:44</a></div></div>
<div class="ttc" id="aa00290_html_a159f161f022ec8eb7ab7feaed3462dac"><div class="ttname"><a href="a00290.html#a159f161f022ec8eb7ab7feaed3462dac">HotKeyIDDispatcher</a></div><div class="ttdeci">BOOL HotKeyIDDispatcher(HWND hWnd, HIMC hIMC, HKL hkl, DWORD dwHotKeyID)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00591">hotkey.c:591</a></div></div>
<div class="ttc" id="aa00290_html_a94659c775dc741381fd9bd5dfdfd4155"><div class="ttname"><a href="a00290.html#a94659c775dc741381fd9bd5dfdfd4155">GetImeHotKeysFromRegistry</a></div><div class="ttdeci">BOOL GetImeHotKeysFromRegistry()</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00149">hotkey.c:149</a></div></div>
<div class="ttc" id="aa00311_html_a93ced286ed15ec806746defb9a3ed34d"><div class="ttname"><a href="a00311.html#a93ced286ed15ec806746defb9a3ed34d">ImmLockIMC</a></div><div class="ttdeci">PINPUTCONTEXT WINAPI ImmLockIMC(HIMC hImc)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00243">misc.c:243</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa00290_html_a98850fc49533deeaede9de02aca59a00"><div class="ttname"><a href="a00290.html#a98850fc49533deeaede9de02aca59a00">NumToHexAscii</a></div><div class="ttdeci">VOID NumToHexAscii(DWORD, PTSTR)</div></div>
<div class="ttc" id="aa00290_html_a7cec1255c18441ed7a8a6bd070a9bd10"><div class="ttname"><a href="a00290.html#a7cec1255c18441ed7a8a6bd070a9bd10">DefaultHotKeyNumK</a></div><div class="ttdeci">INT DefaultHotKeyNumK</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00062">hotkey.c:62</a></div></div>
<div class="ttc" id="aa02049_html_a29c54503aa187b8e4452140cb7e6629f"><div class="ttname"><a href="a02049.html#a29c54503aa187b8e4452140cb7e6629f">_tagIMEHOTKEY::uVKey</a></div><div class="ttdeci">UINT uVKey</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00072">immstruc.h:72</a></div></div>
<div class="ttc" id="aa00371_html_a41f433389f20db57f042022a662e96de"><div class="ttname"><a href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a></div><div class="ttdeci">#define RIP_WARNING</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00029">winerrp.h:29</a></div></div>
<div class="ttc" id="aa00290_html_a5a5d5f37972b6a7484c6726521d83c7e"><div class="ttname"><a href="a00290.html#a5a5d5f37972b6a7484c6726521d83c7e">szaRegImmHotKeys</a></div><div class="ttdeci">TCHAR * szaRegImmHotKeys[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00036">hotkey.c:36</a></div></div>
<div class="ttc" id="aa00341_html_a52e0378e937fd83c187f45fd41d6e793"><div class="ttname"><a href="a00341.html#a52e0378e937fd83c187f45fd41d6e793">NtUserSetImeHotKey</a></div><div class="ttdeci">BOOL NtUserSetImeHotKey(DWORD dwID, UINT uModifiers, UINT uVKey, HKL hkl, DWORD dwAction)</div></div>
<div class="ttc" id="aa00290_html_a588ef18751a8ca67b4059fb29ecc8b3c"><div class="ttname"><a href="a00290.html#a588ef18751a8ca67b4059fb29ecc8b3c">szRegVK</a></div><div class="ttdeci">TCHAR szRegVK[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00043">hotkey.c:43</a></div></div>
<div class="ttc" id="aa02061_html"><div class="ttname"><a href="a02061.html">tagIMEDPI</a></div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00063">immuser.h:63</a></div></div>
<div class="ttc" id="aa00290_html_ab3227adc9bfdc09955b9d3fd32e17fef"><div class="ttname"><a href="a00290.html#ab3227adc9bfdc09955b9d3fd32e17fef">szRegHKL</a></div><div class="ttdeci">TCHAR szRegHKL[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00045">hotkey.c:45</a></div></div>
<div class="ttc" id="aa00290_html_abe4753787abf4b7d8284900c32abbe8a"><div class="ttname"><a href="a00290.html#abe4753787abf4b7d8284900c32abbe8a">DefaultHotKeyNumT</a></div><div class="ttdeci">INT DefaultHotKeyNumT</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00068">hotkey.c:68</a></div></div>
<div class="ttc" id="aa00290_html_a723d9ff773cafab64424bec3d32c2921"><div class="ttname"><a href="a00290.html#a723d9ff773cafab64424bec3d32c2921">ImmSetHotKeyWorker</a></div><div class="ttdeci">BOOL ImmSetHotKeyWorker(DWORD dwID, UINT uModifiers, UINT uVKey, HKL hkl, DWORD dwAction)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00495">hotkey.c:495</a></div></div>
<div class="ttc" id="aa00290_html_a34ab8713b440f62e49aca7396078b501"><div class="ttname"><a href="a00290.html#a34ab8713b440f62e49aca7396078b501">KEnglishHangeul</a></div><div class="ttdeci">BOOL KEnglishHangeul(HIMC hIMC, HKL hKL, HWND hWnd)</div></div>
<div class="ttc" id="aa00290_html_a02fed740dc6585f5f7b32bf34008b6ad"><div class="ttname"><a href="a00290.html#a02fed740dc6585f5f7b32bf34008b6ad">szRegImeHotKey</a></div><div class="ttdeci">TCHAR szRegImeHotKey[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00041">hotkey.c:41</a></div></div>
<div class="ttc" id="aa02061_html_a0a773e0cc4dc9fff2db3fa40d0d00ceb"><div class="ttname"><a href="a02061.html#a0a773e0cc4dc9fff2db3fa40d0d00ceb">tagIMEDPI::pfn</a></div><div class="ttdeci">struct tagIMEDPI::_tagImeFunctions pfn</div></div>
<div class="ttc" id="aa03608_html_afd1a0e78d1f88954d93e48ab3821781f"><div class="ttname"><a href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a></div><div class="ttdeci">typedef UINT(FAR WINAPI *MSGSOUNDPROC)()</div></div>
<div class="ttc" id="aa00290_html_aca264753730daaafd8b19979ec8b5511"><div class="ttname"><a href="a00290.html#aca264753730daaafd8b19979ec8b5511">KHanjaConvert</a></div><div class="ttdeci">BOOL KHanjaConvert(HIMC hIMC, HKL hKL, HWND hWnd)</div></div>
<div class="ttc" id="aa00293_html_a4a8d67a2c4cc9ce4dd6aabfd9e460635"><div class="ttname"><a href="a00293.html#a4a8d67a2c4cc9ce4dd6aabfd9e460635">ImmAssert</a></div><div class="ttdeci">#define ImmAssert</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00057">immcli.h:57</a></div></div>
<div class="ttc" id="aa00341_html_a0fda78347cf5f0401336a24533fab608"><div class="ttname"><a href="a00341.html#a0fda78347cf5f0401336a24533fab608">MOD_MODIFY_KEYS</a></div><div class="ttdeci">#define MOD_MODIFY_KEYS</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00064">immstruc.h:64</a></div></div>
<div class="ttc" id="aa00341_html_ae4e276818dfca727a1b951fb48026f6a"><div class="ttname"><a href="a00341.html#ae4e276818dfca727a1b951fb48026f6a">ISHK_REMOVE</a></div><div class="ttdeci">#define ISHK_REMOVE</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00066">immstruc.h:66</a></div></div>
<div class="ttc" id="aa00371_html_adbdd8355d15a97b6f3a9e4766e6a2cc1"><div class="ttname"><a href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a></div><div class="ttdeci">#define RIPERR1(idErr, flags, szFmt, p1)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00120">winerrp.h:120</a></div></div>
<div class="ttc" id="aa02889_html"><div class="ttname"><a href="a02889.html">tagTHREADINFO</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02260">userk.h:2260</a></div></div>
<div class="ttc" id="aa00278_html_a3027828ace11569163557dd87e67dc5c"><div class="ttname"><a href="a00278.html#a3027828ace11569163557dd87e67dc5c">ImmGetContext</a></div><div class="ttdeci">HIMC WINAPI ImmGetContext(HWND hWnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00278_source.html#l00161">context.c:161</a></div></div>
<div class="ttc" id="aa00341_html_a978064f0ef1e2603367fda2b3d28900f"><div class="ttname"><a href="a00341.html#a978064f0ef1e2603367fda2b3d28900f">ISHK_ADD</a></div><div class="ttdeci">#define ISHK_ADD</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00067">immstruc.h:67</a></div></div>
<div class="ttc" id="aa02049_html_a28b485dbae7febc36ac45af40be60271"><div class="ttname"><a href="a02049.html#a28b485dbae7febc36ac45af40be60271">_tagIMEHOTKEY::dwHotKeyID</a></div><div class="ttdeci">DWORD dwHotKeyID</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00071">immstruc.h:71</a></div></div>
<div class="ttc" id="aa02049_html_a1002de7568af179aa8794e9da4f3f279"><div class="ttname"><a href="a02049.html#a1002de7568af179aa8794e9da4f3f279">_tagIMEHOTKEY::uModifiers</a></div><div class="ttdeci">UINT uModifiers</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00073">immstruc.h:73</a></div></div>
<div class="ttc" id="aa00026_html_a46278f8b1db32b9b4679eee6abc9e1b4"><div class="ttname"><a href="a00026.html#a46278f8b1db32b9b4679eee6abc9e1b4">GetKeyboardLayout</a></div><div class="ttdeci">HKL GetKeyboardLayout(DWORD idThread)</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l03732">client.c:3732</a></div></div>
<div class="ttc" id="aa00311_html_a5d94d0239203482be832b9a8e6f67754"><div class="ttname"><a href="a00311.html#a5d94d0239203482be832b9a8e6f67754">ImmUnlockIMC</a></div><div class="ttdeci">BOOL WINAPI ImmUnlockIMC(HIMC hImc)</div><div class="ttdef"><b>Definition:</b> <a href="a00311_source.html#l00302">misc.c:302</a></div></div>
<div class="ttc" id="aa00290_html_a24fb9a95d0840522ea450a58c1d991c6"><div class="ttname"><a href="a00290.html#a24fb9a95d0840522ea450a58c1d991c6">JCloseOpen</a></div><div class="ttdeci">BOOL JCloseOpen(HIMC hIMC, HKL hKL, HWND hWnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00649">hotkey.c:649</a></div></div>
<div class="ttc" id="aa00290_html_ac2a3547cf7aa2440b6aa5e1993d793c6"><div class="ttname"><a href="a00290.html#ac2a3547cf7aa2440b6aa5e1993d793c6">DefaultHotKeyNumC</a></div><div class="ttdeci">INT DefaultHotKeyNumC</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00074">hotkey.c:74</a></div></div>
<div class="ttc" id="aa02049_html_a193b0c2e24d821084e237bb1c54e8cc4"><div class="ttname"><a href="a02049.html#a193b0c2e24d821084e237bb1c54e8cc4">_tagIMEHOTKEY::hKL</a></div><div class="ttdeci">HKL hKL</div><div class="ttdef"><b>Definition:</b> <a href="a00341_source.html#l00074">immstruc.h:74</a></div></div>
<div class="ttc" id="aa00290_html_a3c47385a6c0c83f1baece0767254a90e"><div class="ttname"><a href="a00290.html#a3c47385a6c0c83f1baece0767254a90e">szHexString</a></div><div class="ttdeci">static TCHAR szHexString[]</div><div class="ttdef"><b>Definition:</b> <a href="a00290_source.html#l00568">hotkey.c:568</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_47153d622fb9b44b5267fed192e6cede.html">imm</a></li><li class="navelem"><a class="el" href="a00290.html">hotkey.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
